import { AIToken, Token } from "@/utils/cache";
import request from "./request";

// 获取付费服务列表
export function paidServiceList() {
  return request({
    url: "/paid-service/list"
    // isToken: false,
    // data: {
    //   service_type: 1
    // }
  });
}

// 下单
export function payment(service_id: string) {
  return request({
    url: "/user/service/payment",
    method: "POST",
    data: {
      service_id
    }
  });
}

// 微信支付
export function wxpayment(order_id: string) {
  return request({
    url: "/wechat/mini/payment",
    method: "POST",
    data: {
      order_id
    }
  });
}
// 查询订单接口
export function checkOrder(service_id: string) {
  return request({
    url: "/order",
    data: {
      service_id
    }
  });
}
